package com.easygoods.request;

import com.bestvike.stone.spring.exception.AssertUtils;
import com.bestvike.stone.spring.rest.IRequest;
import lombok.Data;

import java.util.List;

/**
 * Created by 许崇雷 on 2019-01-26.
 */
@Data
public class OrderRefundRequest implements IRequest {
    private String orderId;
    private String reason;
    private List<String> refundFileList;

    @Override
    public void assertValid() {
        AssertUtils.hasText(this.orderId, "orderId");
        AssertUtils.hasText(this.reason, "reason");
        AssertUtils.notEmpty(this.refundFileList, "refundFileList");
    }
}
